package com.fqgj.xjd.user.dao;

import com.fqgj.common.base.BaseMapper;
import com.fqgj.xjd.user.entity.UserContactCarrierEntity;
import com.fqgj.xjd.user.entity.business.UserCarrierStatisticsEntity;

import java.util.Date;
import java.util.List;

/**
 * User: zhangxingyun
 * Date: 2017-07-20
 * Time: 18:38:53.076
 */

public interface UserContactCarrierDao extends BaseMapper<UserContactCarrierEntity> {

    UserContactCarrierEntity selectByUserCode(String userCode);

    int deleteByUserCode(String userCode);

    List<UserContactCarrierEntity> selectUsersByUserCode(String userCode);

    List<UserContactCarrierEntity> selectUsersByStatus(Integer status);

    List<UserContactCarrierEntity> selectUsersByUserCodeAndStatus(String userCode, Integer status);

    List<UserCarrierStatisticsEntity> selectUserCarrierStatistics(Date startDate, Date endDate);
}